<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test01</title>
</head>
<body>
<script type="text/javascript">
    let str = "name";
    let name = "zhangsan";
    let methodName01 = "say";

    let obj = {
        // [str]: name,
        name,
        ["age" + "888"]: 18,
        [new Date().toISOString()]: 18,
        [methodName01]() {
            console.log(this.name);
        }
    };

    console.log(obj);

    // obj.say();

    function f() {
        let name = "xxx";
        let age = "yyy";
        return {name, age};
    }

</script>
</body>
</html>